import request from "./request";
//获取歌手分页列表
export const reqGetArtist = ({
  type = -1,
  area = -1,
  initial = "",
  limit = 50,
  offset = 0
}) => {
  return request({
    method: "GET",
    url: `/artist/list?type=${type}&area=${area}&initial=${initial}&limit=${limit}&offset=${offset}`
  });
};
//获取歌手单曲
export const reqGetArtists = id => {
  return request({
    method: "GET",
    url: `/artists?id=${id}`
  });
};
//获取歌手描述
export const reqGetDesc = id => {
  return request({
    method: "GET",
    url: `/artist/desc?id=${id}`
  });
};
//获取歌手专辑
export const reqGetAlbum = ({ id = "", limit = 50, offset = 0 }) => {
  return request({
    method: "GET",
    url: `/artist/album?id=${id}&limit=${limit}&offset=${offset}`
  });
};
//获取歌手mv
export const reqGetmv = ({ id = "", limit = 50, offset = 0 }) => {
  return request({
    method: "GET",
    url: `/artist/mv?id=${id}&limit=${limit}&offset=${offset}`
  });
};
// 歌手热门歌曲
export const reqGetTop=({
    id=""
})=>{
  return request({
    method:'GET',
    url:`/artists?id=${id}`
  })
}
// 歌曲歌词
export const reqGetLyric=({
  id=""
})=>{
return request({
  method:'GET',
  url:`/lyric?id=${id}`
})
}
export const playlistdetail = ({ id = "", s = 8 }) => {
  return request({
    method: "GET",
    url: `/playlist/detail?id=${id}&s=${s}`
  });
};
